package com.bw.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
public class HelloController {


    /**
     * 用来接收请求的
     * @return
     */
    @RequestMapping("/helloPage.do")   // 定义了请求的URL  ，URL在项目名中全局唯一
    public String hello(HttpServletRequest request, HttpServletResponse response, Model model){

        return "hello";  // 返回一个页面  这个页面存放在 view目录下
    }


}
